home *** CD-ROM | disk | FTP | other *** search
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/Changelo,v
- retrieving revision 1.4
- diff -c -r1.4 Changelo
- *** 1.4 1993/05/21 15:35:39
- --- Changelo 1993/05/29 21:19:47
- ***************
- *** 46,48 ****
- --- 46,53 ----
- should not effect lexicograhical ordering.
-
- ---------------------- Patchlevel 06 --------------------------------------
- +
- + tscanf.c:: ++jrb
- + add test case for "%Ns" bug discovered by warwick in scanf.c
- +
- + ---------------------- Patchlevel 07 --------------------------------------
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/PatchLev.h,v
- retrieving revision 1.6
- diff -c -r1.6 PatchLev.h
- *** 1.6 1993/05/21 15:35:42
- --- PatchLev.h 1993/05/29 21:19:48
- ***************
- *** 1,5 ****
-
- ! #define PatchLevel "06"
-
- /*
- *
- --- 1,5 ----
-
- ! #define PatchLevel "07"
-
- /*
- *
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/tscanf.c,v
- retrieving revision 1.1
- diff -c -r1.1 tscanf.c
- *** 1.1 1992/03/26 21:49:31
- --- tscanf.c 1993/05/29 21:19:51
- ***************
- *** 9,27 ****
- * with parts from glibc
- */
- #include <stdio.h>
- #if __STDC__
- # include <stddef.h>
- # ifndef EXIT_FAILURE
- # include <stdlib.h> /* HP strikes again! */
- # endif
- ! #else
- # define EXIT_FAILURE (1) /* failure return value for exit() */
- # define EXIT_SUCCESS (0) /* success return value for exit() */
- #endif
-
- int main()
- {
- ! int i, n;
- float x;
- char name[50];
- int exit_val = EXIT_SUCCESS;
- --- 9,30 ----
- * with parts from glibc
- */
- #include <stdio.h>
- +
- #if __STDC__
- # include <stddef.h>
- # ifndef EXIT_FAILURE
- # include <stdlib.h> /* HP strikes again! */
- # endif
- ! #endif
- !
- ! #ifndef EXIT_FAILURE
- # define EXIT_FAILURE (1) /* failure return value for exit() */
- # define EXIT_SUCCESS (0) /* success return value for exit() */
- #endif
-
- int main()
- {
- ! int i, j, n;
- float x;
- char name[50];
- int exit_val = EXIT_SUCCESS;
- ***************
- *** 61,66 ****
- --- 64,76 ----
- printf("Got:\tn = %d name = :%s:\n\n", n, name);
- if(n != 1) exit_val |= EXIT_FAILURE;
-
- + /* input: FOO123 456 789 */
- + /* output: n = 3 name = :FOO123: i=456 j=789 */
- + n = scanf("%6s %d %d", name, &i, &j);
- + printf("Expect:\tn = 3 name = :FOO123: i=456 j=789\n");
- + printf("Got:\tn = %d name = :%s: i=%d j=%d\n\n", n, name, i, j);
- + if(n != 3) exit_val |= EXIT_FAILURE;
- +
- /* input: 2 quarts of oil
- 10.0LBS of fertilizer
- 100ergs of energy
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/test/tscanf.in,v
- retrieving revision 1.1
- diff -c -r1.1 tscanf.in
- *** 1.1 1992/03/26 21:49:31
- --- tscanf.in 1993/05/29 21:19:52
- ***************
- *** 1,6 ****
- --- 1,7 ----
- 25 54.32E-1 thompson
- 56789 0123 56a72
- 56789 0123 56a72
- + FOO123 456 789
- 2 quarts of oil
- 10.0LBS of fertilizer
- 100ergs of energy
-